package com.cn.jinl.domain;

import com.cn.jinl.utils.CommonUtil;
import com.google.common.collect.ImmutableMap;

import java.util.Date;
import java.util.Map;

public class AbandonMaterialHandle {
    private String id;

    private String abandonType;

    private String outWeight;

    private String fenlian;

    private String status;

    private String outUserName;

    private Date createTime;

    private Date updateTime;

    private int count;

    public static final transient Map<String, String> FENMAP = ImmutableMap.of("0","否","1","是");

    public static final transient Map<String, String> TYPEMAP =
            ImmutableMap.of("1", "料头", "2", "可回收", "3", "不可回收", "4", "彩膜");

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getAbandonType() {
        return abandonType;
    }

    public String getAbandonTypeCn() {
        return TYPEMAP.get(getAbandonType());
    }

    public void setAbandonType(String abandonType) {
        this.abandonType = abandonType == null ? null : abandonType.trim();
    }

    public String getOutWeight() {
        return outWeight;
    }

    public void setOutWeight(String outWeight) {
        this.outWeight = outWeight == null ? null : outWeight.trim();
    }

    public String getFenlianCn() {
        return FENMAP.get(getFenlian());
    }
    public String getFenlian() {
        return fenlian;
    }

    public void setFenlian(String fenlian) {
        this.fenlian = fenlian == null ? null : fenlian.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getOutUserName() {
        return outUserName;
    }

    public void setOutUserName(String outUserName) {
        this.outUserName = outUserName == null ? null : outUserName.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getCreateTimeFt(){
        String formatTime = CommonUtil.getStrTime(getCreateTime(),"yyyy-MM-dd HH:mm:ss");
        return formatTime;
    }
}